package com.laowang.project.system.service.impl;

import java.util.List;
                                                                import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyFormInsuranceMapper;
import com.laowang.project.system.domain.MyFormInsurance;
import com.laowang.project.system.service.MyFormInsuranceService;

/**
 * 保险Service业务层处理
 *
 * @author laowang
 * @date 2024-04-24
 */
@Service
public class MyFormInsuranceServiceImpl implements MyFormInsuranceService {
    @Autowired
    private MyFormInsuranceMapper myFormInsuranceMapper;

    /**
     * 查询保险
     *
     * @param id 保险ID
     * @return 保险
     */
    @Override
    public MyFormInsurance selectMyFormInsuranceById(Integer id) {
        return myFormInsuranceMapper.selectMyFormInsuranceById(id);
    }

    /**
     * 查询保险列表
     *
     * @param myFormInsurance 保险
     * @return 保险
     */
    @Override
    public List<MyFormInsurance> selectMyFormInsuranceList(MyFormInsurance myFormInsurance) {
        return myFormInsuranceMapper.selectMyFormInsuranceList(myFormInsurance);
    }

    /**
     * 新增保险
     *
     * @param myFormInsurance 保险
     * @return 结果
     */
    @Override
    public int insertMyFormInsurance(MyFormInsurance myFormInsurance) {
                                                                                                                    return myFormInsuranceMapper.insertMyFormInsurance(myFormInsurance);
    }

    /**
     * 修改保险
     *
     * @param myFormInsurance 保险
     * @return 结果
     */
    @Override
    public int updateMyFormInsurance(MyFormInsurance myFormInsurance) {
                                                                                                                    return myFormInsuranceMapper.updateMyFormInsurance(myFormInsurance);
    }

    /**
     * 批量删除保险
     *
     * @param ids 需要删除的保险ID
     * @return 结果
     */
    @Override
    public int deleteMyFormInsuranceByIds(Integer[] ids) {
        return myFormInsuranceMapper.deleteMyFormInsuranceByIds(ids);
    }

    /**
     * 删除保险信息
     *
     * @param id 保险ID
     * @return 结果
     */
    @Override
    public int deleteMyFormInsuranceById(Integer id) {
        return myFormInsuranceMapper.deleteMyFormInsuranceById(id);
    }
}
